home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group97a.txt
/
000010_icon-group-sender _Mon Jan 6 11:57:48 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
1KB
Received: by cheltenham.cs.arizona.edu; Mon, 6 Jan 1997 13:49:07 MST
Date: Mon, 6 Jan 1997 11:57:48 -0600
Message-Id: <199701061757.LAA05351@ns1.computek.net>
Mime-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
From: gep2@computek.net
Subject: Another Question from the Neophyte
To: icon-group@cs.arizona.edu
X-Mailer: SPRY Mail Version: 04.00.06.17
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 715
>... I haven't found a good way to move
backwards, besides first reversing a string and then scanning forward
(which is functionally scanning backwards).
>...I did manage to find a solution, but isn't there less cumbersome way of
scanning backwards than using reverse()?
There are a variety of kluges which can be used, but honestly I think that often
the most effective way simply is to use reverse()... since then everything works
in its most natural way.
There has been talk of implementing a "&direction" item which could be set
either to +1 or -1 to set the scanning direction, but nobody seems to be very
excited about that as a general feature.
Gordon Peterson
http://www.computek.net/public/gep2/